//提示，显示与隐藏
$("input").click(function(){
    var name=$(this).attr("name");
    $(".text_msg").css("display","none");
    $("#"+name+"_msg").css("display","inline");
})
$(".button").click(function(){
    var name=$("#name").val();
    var pwd=$("#pwd").val();
     $.ajax({
        type:"get",
        url:"index.php?m=Index&c=user&a=checkdenglu",
        data:{name:name,pwd:pwd},
        success:function(res){
            if(res==true){
            alert('登录成功');window.location.href="index.php?m=Index&c=index&a=index";
            }else{
            alert("登录失败");
            }
        }
       });                   
    });
